package br.unicamp.ic.lsd.wscaa.model;

import br.unicamp.ic.lsd.wscaa.exception.WSDynamicException;

public class ServiceResponse {
	
	private String responseName = null;
	private Object[] reponses = null;
	private WSDynamicException exception = null;
	
	/**
	 * @param responseName
	 * @param reponses
	 */
	public ServiceResponse(String responseName, Object[] reponses) {
		this.responseName = responseName;
		this.reponses = reponses;
		//this.exception = exception;
	}
	
	public ServiceResponse(String responseName, WSDynamicException exception) {
		this.responseName = responseName;
		this.exception = exception;
	}

	public String getResponseName() {
		return responseName;
	}

	public void setResponseName(String responseName) {
		this.responseName = responseName;
	}

	public Object[] getReponses() {
		return reponses;
	}

	public void setReponses(Object[] reponses) {
		this.reponses = reponses;
	}

	public WSDynamicException getException() {
		return exception;
	}

	public void setException(WSDynamicException exception) {
		this.exception = exception;
	}

	public boolean hasException(){
		return exception == null ? false : true;
	}
}
